import HttpHandler from "@/handler/HttpHandler";

export default class materialApi {
    constructor() {
        this.http = new HttpHandler();
    }

    // 获取列表
    queryListPage(data) {
        let url = '/tie-demo/material/queryListPage';
        return this.http.get(url, data);
    }
    // 新增
    add(data) {
        let url = '/tie-demo/material/add';
        return this.http.post(url, data);
    }
    // 修改
    update(data) {
        let url = '/tie-demo/material/update';
        return this.http.post(url, data);
    }
    // 详情
    detail(data) {
        let url = '/tie-demo/material/queryDetail';
        return this.http.get(url, data);
    }
    // 批量启用禁用
    batchChangeState(data) {
    let url = '/tie-demo/material/batchChangeState';
    return this.http.post(url, data);
    }
        // 删除
    // batchDelete(data) {
    //     let url = '/tie-demo/material/batchDelete';
    //     return this.http.post(url, data);
    // }

}
